using System;
using NBModular.Lib.Data.Abstractions.Attributes;
using NBModular.Lib.Data.Core.Entities.Extend;

namespace NBModular.Module.WeChat.Domain.WeChatUser
{
    /// <summary>
    /// 微信用户信息
    /// </summary>
    [Table("WeChatUser")]
    public partial class WeChatUserEntity : EntityBaseWithSoftDelete
    {
        /// <summary>
        /// 应用ID
        /// </summary>
        public string AppId { get; set; }

        /// <summary>
        /// 用户的唯一标识
        /// </summary>
        public string OpenId { get; set; }

        /// <summary>
        /// 用户昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 性别；1：男，2：女，0：未知
        /// </summary>
        public int Sex { get; set; }

        /// <summary>
        /// 省份
        /// </summary>
        [Length(100)]
        public string Province { get; set; }

        /// <summary>
        /// 城市
        /// </summary>
        [Length(100)]
        public string City { get; set; }

        /// <summary>
        /// 国家
        /// </summary>
        [Length(100)]
        public string Country { get; set; }

        /// <summary>
        /// 用户头像
        /// </summary>
        [Length(500)]
        public string HeadimgUrl { get; set; }

        /// <summary>
        /// 用户特权信息，json 数组，如微信沃卡用户为（chinaunicom）
        /// </summary>
        [Length(3000)]
        public string Privilege { get; set; }

        /// <summary>
        /// 只有在用户将公众号绑定到微信开放平台帐号后，才会出现该字段。
        /// </summary>
        public string Unionid { get; set; }

    }
}
